﻿YUI.add('handlebars-date-helper', function (Y) {

    Y.Handlebars.registerHelper('date', function (text) {
        var splitedDate = text.split('/');

        var date = new Date(parseInt(splitedDate[0]), parseInt(splitedDate[1]), parseInt(splitedDate[2]))
        date.toISOString().substring(0, 10)
        return new Y.Handlebars.SafeString(html + '>' + text + '</a>');
    });

}, '0.0.0.1', { requires: ['handlebars'] })

